package com.bole.feign;

import com.bole.dto.specdetails.TbCarSpecDetailsDto;
import com.bole.dto.user.DicCarSpecDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface CarSpecDetailsFeign {

    @GetMapping("/details/getSpecDetailsInfo")
    List<TbCarSpecDetailsDto> getSpecInfo();
    @PostMapping("/details/saveSpecDetailsInfo")
    void saveSpecDetailsInfo(TbCarSpecDetailsDto carSpecDetailsDto);
    @PostMapping("/details/toUpdate")
    TbCarSpecDetailsDto toUpdate(@RequestParam("id")Long id);
    @PostMapping("/details/updateSpecDetailsInfo")
    void updateSpecInfo(@RequestBody TbCarSpecDetailsDto carSpecDetailsDto);

    @PostMapping("/details/deleteBatch")
    void deleteBatch(@RequestParam("ides")List<Long> ides);

    @PostMapping("/details/selectBySpecId")
    List<TbCarSpecDetailsDto> selectBySpecId(@RequestParam("specId") Long specId);
}
